import { createStore , applyMiddleware } from 'redux';
import homeReducer  from '../reducers/homeReducers';
import thunkMiddleware from 'redux-thunk';

module.exports = function(initialState) {
    const finalCreateStore = applyMiddleware(thunkMiddleware)(createStore);
    return finalCreateStore(homeReducer, initialState);
};